package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 林彬辉
 * @version V1.0
 * @Package org.edu.modules.oa.entity
 * @date 2021/7/31 13:44
 */
@Data
//数据表名
@TableName("department")
//返回值变程对象本身
@Accessors(chain = true)
//重写toString方法
@EqualsAndHashCode(callSuper = false)
public class DepartmentEntity implements Serializable {

    @ApiModelProperty(value = "部门id")
    @TableField(value = "DEPT_ID")
    private Long deptId;

    @ApiModelProperty(value = "部门名称")
    @TableField(value = "DEPT_NAME")
    private String deptName;

    @ApiModelProperty(value = "部门类型（sys_code表）")
    @TableField(value = "DEPT_TYPE")
    private String deptType;

    @ApiModelProperty(value = "部门简称")
    @TableField(value = "DEPT_ABBR_NAME")
    private String deptAbbrName;
    @ApiModelProperty(value = "电话")
    @TableField(value = "TEL_NO")
    private String  telNo;
    @ApiModelProperty(value = "传真")
    @TableField(value = "FAX_NO")
    private String faxNo;
    @ApiModelProperty(value = "部门地址")
    @TableField(value = "DEPT_ADDRESS")
    private String deptAddress;
    @ApiModelProperty(value = "部门排序号")
    @TableField(value = "DEPT_NO")
    private String deptNo;
    @ApiModelProperty(value = "上级部门ID")
    @TableField(value = "DEPT_PARENT")
    private Long deptParent;
    @ApiModelProperty(value = "部门主管")
    @TableField(value = "MANAGER")
    private String manager;
    @ApiModelProperty(value = "部门助理")
    @TableField(value = "ASSISTANT_ID")
    private String assistantId;
    @ApiModelProperty(value = "上级主管领导")
    @TableField(value = "LEADER1")
    private String leader1;
    @ApiModelProperty(value = "上级分管领导")
    @TableField(value = "LEADER2")
    private String leader2;
    @ApiModelProperty(value = "部门职能")
    @TableField(value = "DEPT_FUNC")
    private String deptFunc;
    @ApiModelProperty(value = "是否是分支机构(0-否,1-是)")
    @TableField(value = "IS_ORG")
    private String isOrg;

    @ApiModelProperty(value = "机构管理员")
    @TableField(value = "ORG_ADMIN")
    private String orgAdmin;

    @ApiModelProperty(value = "保密邮件审核人")
    @TableField(value = "DEPT_EMAIL_AUDITS_IDS")
    private String deptEmailAuditsIds;

    @ApiModelProperty(value = "关联企业微信的部门id")
    @TableField(value = "WEIXIN_DEPT_ID")
    private String weixinDeptId;

    @ApiModelProperty(value = "关联钉钉的部门id")
    @TableField(value = "DINGDING_DEPT_ID")
    private String dingdingDeptId;

    @ApiModelProperty(value = "是否全局部门(0-否,1-是)")
    @TableField(value = "G_DEPT")
    private Long gDept;

    @ApiModelProperty(value = "分级机构（0-不是，1-是）")
    @TableField(value = "ClASSIFY_ORG")
    private Long classifyOrg;

    @ApiModelProperty(value = "分级机构的管理员(uid)")
    @TableField(value = "ClASSIFY_ORG_ADMIN")
    private String classifyOrgAdmin;

    @ApiModelProperty(value = "部门编码")
    @TableField(value = "DEPT_CODE")
    private String deptCode;

    @ApiModelProperty(value = "账号")
    @TableField(value = "SMS_GATE_ACCOUNT")
    private String smsGateAccount;
    @ApiModelProperty(value = "密码")
    @TableField(value = "SMS_GATE_PASSWORD")
    private String smsGatePassword;

    @ApiModelProperty(value = "welink的deptcode(即id)")
    @TableField(value = "WELINK_DEPT")
    private String welinkDept;


}
